{% extends "Super.tpl" %}
{% block content %}
<section id="content" class="container">
    <div class="block-area">
        <h3>请输入关键字</h3>
        <input id="keyword" class="form-control input-lg m-b-10" type="text"
               placeholder="教程">
        <button class="btn btn-block m-b-10" id="getkeyword">开始</button>
        {% for k,i in keylist%}
        <a class="btn btn-lg m-r-5" href="getall?kind=1&keyword={{k}}">{{k}}({{i}})</a>
        {%endfor%}
    </div>
    <div class="block-area" id="">
        <h3 class="block-title">采集记录</h3>
        <button class="btn btn-block m-b-10" onclick="deleteall(1)">清空采集</button>
        <div class="table-responsive overflow" tabindex="5005" style="overflow: hidden; outline: none;">
            <table class="tile table table-bordered table-striped">
                <thead>
                <tr>
                    <th>采集ID</th>
                    <th>链接</th>
                    <th>标题</th>
                    <th>采集时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>

                {% for i in list%}
                <tr>
                    <th style="width: 10%">{{i.Id}}</th>
                    <th style="width: 20%"><a target="_blank" href="{{i.Url}}">{{i.Url}}</a></th>
                    <th style="width: 20%"><a target="_blank" href="{{i.Url}}">{{i.Name}}</a></th>
                    <th style="width: 20%">{{i.Ctime}}</th>
                    <th style="width: 15%">
                        <button class="btn m-r-5" onclick="DeleteData({{i.Id}})">删除</button>
                    </th>
                </tr>
                {%endfor%}

                </tbody>
            </table>
        </div>
    </div>

</section>
{% endblock %}
